#ifndef DATASHOW_H
#define DATASHOW_H

#include <QDialog>
#include <QJsonObject>
#include <QMap>
#include <QList>
#include <QLabel>
#include <QJsonArray>
#include <QDebug>
#include <QMouseEvent>
#include "history.h"
namespace Ui {
class DataShow;
}

class DataShow : public QDialog
{
    Q_OBJECT

public:
    explicit DataShow(QWidget *parent = 0);
    ~DataShow();
    void dataShowToUi(QJsonObject jsonData);

private:
    Ui::DataShow *ui;
    QMap<int,QLabel*> dataMap;
    History *h;

    bool eventFilter(QObject *watched, QEvent *event) override;

};

#endif // DATASHOW_H
